package com.ys.enume.wanli;

public class TransactionTypeListEnum {
	
	public enum Type {
		FUND_COLLECTION("归集", "FUND_COLLECTION"),
		PAYMENT("支付", "PAYMENT"),
		REFUND("退款", "REFUND");
		public String name;
		public String value;

		private Type(String name, String value) {
			this.name = name;
			this.value = value;
		}

		public static String getName(String value) {
			for (Type e : Type.values()) {
				if (e.value == value) {
					return e.name;
				}
			}

			return "";
		}
	}
}
